package com.itheima.wait;

public class ThreadDemo {
    public static void main(String[] args) {
        //进行测试
        Cook c = new Cook();
        Foodie f = new Foodie();

        //设置名字
        c.setName("厨师");
        f.setName("顾客");

        //开启线程
        c.start();
        f.start();

    }
}
